package top.superflow.validate

import top.superflow.exception.Exceptable

trait GeneralValidator extends Exceptable{

  protected def notNull(target : Any) : Boolean = {
    if(target == null){
      throwRequestUnsupportedException("The value should not be null!")
    }

    true
  }
}
